using NHibernate.Validator.Constraints;
using SharpArch.Core.PersistenceSupport;
using SharpArch.Core.DomainModel;
using System;

namespace GoldenBicycleCompany.Core
{
    public class Maintenance : Entity
    {
        public Maintenance() { }
        
        [NotNull]
        public virtual Bicycle Bicycle { get; set; }

        [NotNullNotEmpty]
        public virtual string ProblemDescription { get; set; }

        [NotNullNotEmpty]
        public virtual string ProblemResolution { get; set; }

        [NotNull]
        public virtual DateTime RepairStartTime { get; set; }

        [NotNull]
        public virtual DateTime RepairEndTime { get; set; }
    }
}
